/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 说明：
 * Entity Name 费用单
 * @Author：李智深
 * @Date：2012-03-14
 */
@Entity
@Table(name="ruipeng_tb_TFee")
public class TFee implements Serializable{

	private static final long serialVersionUID = 1L;

	private String FeeID;//费用编号CHAR(15)PK
	
	private String Operator;//费用人
	
	private Date HappenTime;//填单时间DATETIME
	
	private Date FeeDate;//费用发生日期DATE
	
	private String Des;//费用说明VARCHAR(1024)
	
	private byte AuditStatu;//状态  1为正在申请2为已审核3为已完成（出库或者入库）
	
	private String AuditName;//审核人CHAR(15)
	
	private Date AuditTime;//审核时间 
	
	private Set<TFeeDetail> TFeeDetails=new HashSet<TFeeDetail>(0);

	@Id
	@Column(name = "FeeID", length=15)
	public String getFeeID() {
		return FeeID;
	}

	public void setFeeID(String feeID) {
		FeeID = feeID;
	}

	@Column(name = "Operator", length=15)
	public String getOperator() {
		return Operator;
	}

	public void setOperator(String operator) {
		Operator = operator;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "HappenTime", nullable = false, length = 19)
	public Date getHappenTime() {
		return HappenTime;
	}

	public void setHappenTime(Date happenTime) {
		HappenTime = happenTime;
	}

	@Temporal(TemporalType.DATE)
	public Date getFeeDate() {
		return FeeDate;
	}

	@Column(name = "FeeDate", nullable = false, length = 19)
	public void setFeeDate(Date feeDate) {
		FeeDate = feeDate;
	}

	@Column(name = "Des", length=1024)
	public String getDes() {
		return Des;
	}

	public void setDes(String des) {
		Des = des;
	}
	@Column(name = "AuditStatu")
	public byte getAuditStatu() {
		return AuditStatu;
	}

	public void setAuditStatu(byte auditStatu) {
		AuditStatu = auditStatu;
	}
	@Column(name = "AuditName",length=15)
	public String getAuditName() {
		return AuditName;
	}

	public void setAuditName(String auditName) {
		AuditName = auditName;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "AuditTime", nullable = false, length = 19)
	public Date getAuditTime() {
		return AuditTime;
	}

	public void setAuditTime(Date auditTime) {
		AuditTime = auditTime;
	}

	@OneToMany(mappedBy="TFee")
	@JoinColumn(name="FeeID")
	public Set<TFeeDetail> getTFeeDetails() {
		return TFeeDetails;
	}

	public void setTFeeDetails(Set<TFeeDetail> tFeeDetails) {
		TFeeDetails = tFeeDetails;
	}
}
